import request from '@/utils/request'
// 设备类型管理渲染数据
export const list = (params) => request({
  url: '/vm-service/vmType/search',
  method: 'GET',
  params
})

// 售货机类型删除
export const delType = (id) => request({
  url: '/vm-service/vmType/' + id,
  method: 'DELETE'
})

// 新增售货机类型
export const addType = (data) => request({
  url: '/vm-service/vmType',
  method: 'POST',
  data
})

// 修改售货机类型
export const editType = (data) => request({
  url: '/vm-service/vmType/' + data.typeId,
  method: 'PUT',
  data
})
